From 963d9e8fdfd367f6389ff69adbf2640deedf2bbc Mon Sep 17 00:00:00 2001 From: "emellor@leeni.uk.xensource.com" Date: Sat, 26 Nov 2005 23:59:09 +0000 Subject: [PATCH] Write the error message and the hotplug-status=busy in the same transaction, to ensure that the message is picked up. Signed-off-by: Ewan Mellor --- tools/examples/block-common.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/examples/block-common.sh b/tools/examples/block-common.sh index b6513eac39..000b52724f 100644 --- a/tools/examples/block-common.sh +++ b/tools/examples/block-common.sh @@ -34,8 +34,8 @@ XENBUS_PATH="${XENBUS_PATH:?}" ebusy() { - xenstore_write "$XENBUS_PATH/hotplug-status" busy - xenstore_write "$XENBUS_PATH/hotplug-error" "$*" + xenstore_write "$XENBUS_PATH/hotplug-error" "$*" \ + "$XENBUS_PATH/hotplug-status" busy log err "$@" exit 1 } -- 2.30.2